﻿using System.Data;
using System.Data.SqlClient;

namespace DAL
{
    public class BaseRepository_DT<T> : BaseRepository<T> where T : class
    {
        protected const string PARM_STARTTIME = "@starttime";
        protected const string PARM_STOPTIME = "@stoptime";

        public SqlParameter[] GetDTParameters()
        {
            SqlParameter[] parms = null;
            parms = new SqlParameter[]
                {
                    new SqlParameter(PARM_STARTTIME, SqlDbType.DateTime,8),
                    new SqlParameter(PARM_STOPTIME, SqlDbType.DateTime,8),
                };
            return parms;
        }
    }
}
